/*
 *Copyright (c) 2012 Mango Persistence Model
 */
package ext.mango.aa.eo;

import mango.orm.entity.Entity;
import mango.orm.entity.Table;
import mango.orm.entity.Column;
import mango.orm.OrmTypes;
import java.sql.Types;

/**
 * BaseCode
 * @serial 1339856548811
 */
@Table("BASECODE")
public class EOBaseCode extends Entity {
    private static final long serialVersionUID = -133985654881149866L;

    /**
     * Name    : CodeType
     * Code    : CodeType
     * Comment : 
     **/
    @Column(column="CODETYPE", primary=true, type=Types.VARCHAR)
    public String getCodeType() {
        return OrmTypes.convert(String.class, this.get("CODETYPE"));
    }

    public EOBaseCode setCodeType(String codeType) {
        this.set("CODETYPE", codeType);
        return this;
    }

    /**
     * Name    : Code
     * Code    : Code
     * Comment : 
     **/
    @Column(column="CODE", primary=true, type=Types.VARCHAR)
    public String getCode() {
        return OrmTypes.convert(String.class, this.get("CODE"));
    }

    public EOBaseCode setCode(String code) {
        this.set("CODE", code);
        return this;
    }

    /**
     * Name    : CodeName
     * Code    : CodeName
     * Comment : 
     **/
    @Column(column="CODENAME", primary=false, type=Types.VARCHAR)
    public String getCodeName() {
        return OrmTypes.convert(String.class, this.get("CODENAME"));
    }

    public EOBaseCode setCodeName(String codeName) {
        this.set("CODENAME", codeName);
        return this;
    }

    /**
     * Name    : CodeOrder
     * Code    : CodeOrder
     * Comment : 
     **/
    @Column(column="CODEORDER", primary=false, type=Types.INTEGER)
    public Integer getCodeOrder() {
        return OrmTypes.convert(Integer.class, this.get("CODEORDER"));
    }

    public EOBaseCode setCodeOrder(Integer codeOrder) {
        this.set("CODEORDER", codeOrder);
        return this;
    }

    /**
     * Name    : Other
     * Code    : Other
     * Comment : 
     **/
    @Column(column="OTHER", primary=false, type=Types.VARCHAR)
    public String getOther() {
        return OrmTypes.convert(String.class, this.get("OTHER"));
    }

    public EOBaseCode setOther(String other) {
        this.set("OTHER", other);
        return this;
    }

}
